package com.dq.repository.user.centre;

import com.dq.domain.service.ServiceProject;
import com.dq.domain.sys.user.user.WxUser;
import com.dq.domain.sys.user.user.centre.UserCard;
import com.dq.domain.sys.user.user.centre.UserCardServiceProjectCentre;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author cf
 */
@Repository
public interface UserCardServiceProjectCentreRepository extends JpaRepository<UserCardServiceProjectCentre, Long> {
    List<UserCardServiceProjectCentre> findByDeletedFalseAndUserCard(UserCard userCard);

    UserCardServiceProjectCentre findByDeletedFalseAndUserCardAndServiceProject(UserCard userCard, ServiceProject serviceProject);

}
